/**
 * This class contains unit tests for validating the behavior of Apex classes
 * and triggers.
 *
 * Unit tests are class methods that verify whether a particular piece
 * of code is working properly. Unit test methods take no arguments,
 * commit no data to the database, and are flagged with the testMethod
 * keyword in the method definition.
 *
 * All test methods in an organization are executed whenever Apex code is deployed
 * to a production organization to confirm correctness, ensure code
 * coverage, and prevent regressions. All Apex classes are
 * required to have at least 75% code coverage in order to be deployed
 * to a production organization. In addition, all triggers must have some code coverage.
 * 
 * The @isTest class annotation indicates this class only contains test
 * methods. Classes defined with the @isTest annotation do not count against
 * the organization size limit for all Apex scripts.
 *
 * See the Apex Language Reference for more information about Testing and Code Coverage.
 */
@isTest
private class proformaInvoiceBatchDelete_Test 
{

    static testMethod void myUnitTest() 
    {
        // TO DO: implement unit test
        //Account Object Record...
        Account accountObject2 = new Account();
        accountObject2.Name = 'Test Account';
        accountObject2.License_Application_Step__c = 'Renewal Started';
        //accountObject1.License_Application_Step__c = 'Submitted for Maintenance Department User Approval';
        accountObject2.License_Application_Type__c = 'Renewal';
        accountObject2.Activity__c = 'Trading - One Activity';
        accountObject2.License_Issue_Date__c = system.today();
        accountObject2.License_Expiry_Date__c = System.Today().addYears(1);
        insert accountObject2;
       
        
         //For Invoice Object Records...
        Invoice__c invoiceObject = new Invoice__c();
        invoiceObject.Account__c = accountObject2.id;
        invoiceObject.Date__c = System.Today();
        invoiceObject.Fee_Application_Type__c = 'New License';
        invoiceObject.Invoice_Type__c = 'New License';
        invoiceObject.isPerformaInvoice__c = true;
        insert invoiceObject;
        
        Test.starttest();
        //Now Callign the Schedule Method...
        proformaInvoiceBatchDelete testBatch= new proformaInvoiceBatchDelete();                                                                 
                                                            
        Database.executeBatch(testBatch);
        
        test.stoptest();
        
    }
}